﻿@model Model.tb_DeviceDetail
@{
    ViewBag.Title = "doDeviceDetailInfo";
}
<!DOCTYPE html>

<head>
    <meta name="viewport" content="width=device-width" />
    <title>仪器设备-运行、保养</title>
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/Scripts/jquery-easyui/themes/default/easyui.css")'>
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/Scripts/jquery-easyui/themes/icon.css")'>
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/Scripts/jquery-easyui/demo.css")'>
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/Scripts/uploader/uploadify.css")' />
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/Scripts/Validform/style.css")'  />
    <script type="text/javascript" src='@Url.Content("~/Scripts/jquery-1.8.2.min.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/jquery-easyui/jquery.easyui.min.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/jquery-easyui/locale/easyui-lang-zh_CN.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/uploader/jquery.uploadify.min.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/uploader/swfobject.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/MicrosoftAjax.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/MicrosoftMvcAjax.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/Validform/Validform_v5.3.2_min.js")'></script>
    <script type="text/javascript" src='@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js")'></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#mDate').click(function () { WdatePicker() });
            /*页面控件验证*/
            $("#mDate").attr("datatype", "*");
            $("#tHour").attr("datatype", "*");
            $("#cHour").attr("datatype", "*");
            $("#AC").attr("datatype", "*");
            $("#userId1").attr("datatype", "d");
            $("#bLevel").attr("datatype", "*");
            $("#bProject").attr("datatype", "*");
            $("#bCompanyId").attr("datatype", "d");
            $("#userId2").attr("datatype", "d");
            $("#userId3").attr("datatype", "d");
            $("#uploadfrm").Validform({
                tiptype: 3
            });
            /*结束 页面控件验证*/
        });
    function handle(e) {
        if (e == "1") {
            window.parent.$('#dgtable').datagrid("reload");
            alert("保存成功！");
            $('#dlg').dialog('close');
        } else {
            alert("保存失败！");
        }
    }
    function failed(e) {
        alert("保存失败！");
    }
    </script>
    <style type="text/css">
        .divList {
            position: absolute;
            top: 40px;
            left: 1px;
            z-index: 99;
            width: 1048px;
        }

        a {
            text-decoration: none;
            color: #000;
        }

            a img {
                border: 0;
            }

        .biaoge {
            width: 1040px;
            font-family: '宋体';
            font-size: 12px;
            color: #10607c;
        }

            .biaoge td {
                text-align: center;
                height: 26px;
                vertical-align: middle;
                border: 1px solid #d4d3d3;
            }

        .data_tab02 {
            height: 22px;
            margin: 0px;
            padding-left: 2px;
            background: url(Content/Images/tab_bg02.gif) repeat-x;
        }

            .data_tab02 dd {
                width: 100px;
                height: 22px;
                line-height: 22px;
                float: left;
                text-align: center;
                cursor: pointer;
                margin-right: 2px;
            }

                .data_tab02 dd a {
                    display: block;
                    clear: both;
                    background: url(../../Content/Images/dlbeijing.png);
                    width: 100px;
                    height: 25px;
                    color: #FFFFFF;
                    font-size: 13px;
                }

                    .data_tab02 dd a:hover {
                        color: #ff9c00;
                    }

                    .data_tab02 dd a:focus {
                        color: #ff9c00;
                    }
    </style>
</head>
<body>
    @using (Ajax.BeginForm("DeviceDetailCU", "Device", new AjaxOptions { HttpMethod = "Post", OnSuccess = "handle", OnFailure = "failed" }, new { @id = "uploadfrm" }))
    {
        @Html.HiddenFor(m => m.id)
        @Html.HiddenFor(m => m.deviceId)
        @Html.HiddenFor(m => m.createDate, new { @id = "createDateE" })
        @Html.HiddenFor(m => m.createUser, new { @id = "createUserE" })
        @Html.HiddenFor(m => m.temp1, new { @id = "temp1E" })
        @Html.HiddenFor(m => m.temp2, new { @id = "temp2E" })
        @Html.HiddenFor(m => m.updateDate, new { @id = "updateDateE" })
        @Html.HiddenFor(m => m.updateUser, new { @id = "updateUserE" })
        <table align="left" height="300px" style="font-family: '宋体'; font-size: 12px;">
            <tr>
                <td width="90px" align="right">日期：</td>
                <td align="left">
                    @Html.TextBoxFor(m=>m.mDate)
                </td>
                <td width="90px" align="right">本期（运行小时）：</td>
                <td align="left">
                    @Html.TextBoxFor(m=>m.tHour)
                </td>
            </tr>
            <tr>
                <td width="90px" align="right">累计（运行小时）：</td>
                <td align="left" id="zichangbianhao">
                    @Html.TextBoxFor(m=>m.cHour)
                </td>
                <td width="90px" align="right">使用期间异常情况：</td>
                <td align="left" id="shebeibianhao">
                    @Html.TextBoxFor(m=>m.AC)
                </td>
            </tr>
            <tr>
                <td width="90px" align="right">通知何人：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.userId1)
                </td>
                <td width="90px" align="right">保养等级：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.bLevel)
                </td>
            </tr>
            <tr>
                <td width="90px" align="right">主要保养项目：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.bProject)
                </td>
                <td width="90px" align="right">保养单位：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.bCompanyId)
                </td>
            </tr>
            <tr>
                <td width="90px" align="right">保养人：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.userId2)
                </td>
                <td width="90px" align="right">验收人：</td>
                <td align="left">
                    @Html.TextBoxFor(m => m.userId3)
                </td>
            </tr>
            <tr>
                <tr>
                    <td width="90px" height="100" align="right" valign="top">备注：</td>
                    <td height="100" colspan="3" align="left" valign="top">
                        @Html.TextAreaFor(m => m.remark, new { @style = "height:100px;width:430px" })                    </td>
                </tr>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <a href="javascript:void(0)" onclick="$('#uploadfrm').submit()">
                        <img src="~/Content/Images/baocun.png" height="20px" /></a>
                    <a href="javascript:void(0)" onclick="window.parent.$('#dlg').dialog('close')">
                        <img src="~/Content/Images/fanhui.png" height="20px" />
                    </a></td>
            </tr>
        </table>
    }
</body>
